<?php

namespace IMT\EventBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class EventGeneralType extends AbstractType
{
	public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('title', 'text', array(
                'label'  => 'Titre de votre évènement',
            ))
            ->add('allDay', 'checkbox', array(
            		'label'  => 'Toute la journée',
            		'required' => false
            ))
            ->add('date', 'datetime', array(
                'label'        => 'De  ',
            ))
            ->add('datefin', 'datetime', array(
                'label'        => 'A ',
            ))
          
            ->add('content', 'textarea', array(
                'label'  => 'Description',
                'attr'  => array(
                    'class' => 'input-xlarge',
                    'rows'  => 3
                    )
               ))
          ->add('importance', 'choice', array(
                'label'  => 'Importance',
                 'choices'      => array('1' => 'faible', '2' => 'moyenne','3' => 'élevé'),
            ))
            
        ;
    }

    public function getName()
    {
        return 'Ajout_evenement';
    }
	
}
